<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
        Promise.all([
            new Promise((resolve, reject) => {
                setTimeout(()=>{
                    resolve("aaaaa")
                },1000)

            }),
            new Promise((resolve, reject) => {
                setTimeout(()=>{
                    resolve("bbbbb")
                },1000)
            })
        ]).then(results=>{
            // results是一个数组 0 第一个 1 第二个
            console.log(results);
        })
    </script>
</body>
</html>